import React, { PureComponent } from "react";

import { View, Alert, TouchableOpacity, Image, Text, FlatList } from "react-native";

import TopBar from "../../../../../../components/topbar";

import styles from "./style"

export default class ShareRulesScreen extends PureComponent {
    constructor() {
        super();
    }
    componentDidMount() {

    }
    render() {
        return (
            <View style={{ flex: 1, backgroundColor: "white" }}>
                <TopBar navigation={this.props.navigation} title="收徒规则"
                    leftIsVisible={true} ></TopBar>
                <Text style={[styles.title, {marginTop: 20, marginBottom: 15}]}>收徒规则</Text>
                <FlatList scrollEnabled = {false} data={[
                    { key: '1. iOS徒弟每做一个任务，师傅获得徒弟所做任务价格相等奖励（100%提成）；' },
                    { key: '2. Android徒弟每做一个任务，师傅获得徒弟所做任务价格的20%的奖励（20%提成）；' },
                    { key: '3. 提成不影响徒弟的收入，由豆豆赚钱另行发放；' },
                    { key: '4. 每个徒弟最多给师傅贡献10元，多收徒多得；' },
                    { key: '5. 提成仅包含精选任务；' },
                    { key: '6. 豆豆赚钱保留对活动的最终解释权。' },
                ]}
                    renderItem={({ item }) => <Text style={styles.title}>{item.key}</Text>} />
            </View>
        )
    }
}